import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/view'),
      meta:{
        title:'首页'
      }
    },
    {
      path: '/preview',
      name: 'preview',
      component: () => import('@/view/preview'),
      meta:{
        title:'预览'
      }
    },
    {
      path: '/edit',
      name: 'ChartEdit',
      component: () => import('@/view/edit'),
      meta:{
        title:'编辑'
      }
    },
  ]
})
export default router